<?php
class Type_model extends CI_Model
{
    public function __construct()
    {
        $this->load->database();
    }

    public function get_types()
    {
        $query = $this->db->get("t_type");
        return $query->result_array();
    }
}
?>
